﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.BaseInformation;
using TyMES.Model;

namespace TyMES.ViewModel.BaseInformation.ProductVMs
{
    public partial class ProductTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._Product._ProductCode")]
        public ExcelPropety ProductCode_Excel = ExcelPropety.CreateProperty<Product>(x => x.ProductCode);
        [Display(Name = "_Model._Product._ProductName")]
        public ExcelPropety ProductName_Excel = ExcelPropety.CreateProperty<Product>(x => x.ProductName);
        [Display(Name = "_Model._Product._ProductVersion")]
        public ExcelPropety ProductVersion_Excel = ExcelPropety.CreateProperty<Product>(x => x.ProductVersion);
        [Display(Name = "_Model._Product._Product_Type")]
        public ExcelPropety Product_Type_Excel = ExcelPropety.CreateProperty<Product>(x => x.Product_Type);
        [Display(Name = "_Model._Product._IsVulnerable")]
        public ExcelPropety IsVulnerable_Excel = ExcelPropety.CreateProperty<Product>(x => x.IsVulnerable);
        [Display(Name = "_Model._Product._ProductStatus")]
        public ExcelPropety ProductStatus_Excel = ExcelPropety.CreateProperty<Product>(x => x.ProductStatus);
        [Display(Name = "_Model._Product._Notes")]
        public ExcelPropety Notes_Excel = ExcelPropety.CreateProperty<Product>(x => x.Notes);

	    protected override void InitVM()
        {
            
        }

    }

    public class ProductImportVM : BaseImportVM<ProductTemplateVM, Product>
    {
            //import

    }

}